package com.ruoyi.project.gzbook.orderinfo.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单信息对象 dg_order_info
 * 
 * @author mhg
 * @date 2021-10-06
 */
public class DgOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 图书集合 */
    @Excel(name = "图书集合")
    private String books;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal totalPrice;

    /** 优惠价格 */
    @Excel(name = "优惠价格")
    private BigDecimal reducePrice;

    /** 实际付款 */
    @Excel(name = "实际付款")
    private BigDecimal actuallyPrice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBooks(String books)
    {
        this.books = books;
    }

    public String getBooks()
    {
        return books;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }
    public void setReducePrice(BigDecimal reducePrice)
    {
        this.reducePrice = reducePrice;
    }

    public BigDecimal getReducePrice()
    {
        return reducePrice;
    }
    public void setActuallyPrice(BigDecimal actuallyPrice)
    {
        this.actuallyPrice = actuallyPrice;
    }

    public BigDecimal getActuallyPrice()
    {
        return actuallyPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("books", getBooks())
            .append("userId", getUserId())
            .append("totalPrice", getTotalPrice())
            .append("reducePrice", getReducePrice())
            .append("actuallyPrice", getActuallyPrice())
            .append("createTime", getCreateTime())
            .toString();
    }
}
